game_manager
{
spawn

wm_set_defending_team 0
wm_setwinner 0
construct construction_script

trigger objective1
{

accum 2 set 1

trigger game_manager checkgame
}


}


transmitter_obj
{
spawn
{
}
death
{
wm_setwinner 1
wm_announce "Allied team have stolen the gold!!!"
wait 1500
wm_endround

}
}

construction_script 
{ 
   spawn 
   { 
      wait 200 
      constructible_class 2 
      //trigger self startup 
	  setstate construction_extra default 
      setstate construction_mg42  default 
      setstate const_tower        invisible 
	  setstate const_toi invisible
	  
   } 

   buildstart final 
   { 
   } 

   built final 
   { 
      setstate construction_extra default 
      setstate construction_mg42  default 
      setstate const_tower        invisible 

      // Some kind of UI pop-up to alert players 
   } 

   decayed final 
   { 
      trigger self startup 
   } 

   death 
   { 
      trigger self startup 
      // Some kind of UI pop-up to alert players 
      wm_announce   "Allied team has destroyed the lake mg!" 
   } 

   trigger startup 
   { 
      setstate construction_extra invisible 
      setstate construction_mg42  invisible 
      setstate const_tower        default 
      repairmg42 construction_mg42 
   } 
} 
